package com.mall.entity.live;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class TbLive implements Serializable {

    //直播id
    private Long id;

    //直播标题
    private String title;

    //图片
    private String image;

    //主播id
    private Long uid;

    //主播名称
    private String username;

    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    //直播状态(0:直播中，1:已结束)
    private String status;

    //点赞人数
    private Integer likeNum;

    //关注人数
    private Integer attentionNum;

    //卖出商品数量
    private Integer saleNum;

    //观看人数/在线人数
    private Integer lookNum;

    //销售金额
    private BigDecimal salary;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //直播时长
    private String liveTime;

    //角色
    private String role;

    //直播模式
    private String pattern;

    //每个人每天直播时长
    private Integer liveLongTime;

    //每个人都有哪天直播过
    private String groupTime;

    //每天直播观看的总人数
    private Integer liveNum;

    //每天直播的总销售量
    private Integer saleAllNum;

    //描述
    private String description;

    //商品id
    private Integer[] items;

    //下单数量
    private Integer orderNum;

    //收货量
    private Integer inNum;

    //退货量
    private Integer outNum;
    /**
     * 推流
     */
    private String pushStream;
    /**
     * 拉流
     */
    private String pullStream;
}
